﻿using Cmp.Web.Common;
using Cmp.Web.IRepository;
using Cmp.Web.IService;
using Cmp.Web.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cmp.Web.Service
{
    /// <summary>
    /// 排班信息接口
    /// </summary>
    public class ScheService : IScheService
    {
        private readonly IScheTimeProvide scheTimeProvide;
        public ScheService(IScheTimeProvide timeProvide)
        {
            scheTimeProvide = timeProvide;


        }
        public Task<List<ScheInfo>> GetScheInfoListByDeptCode(string DeptCode, out ExceptionAll exception)
        {
           return scheTimeProvide.GetScheInfoListByDeptCode(DeptCode, out exception);
        }

        public Task<List<ScheInfo>> GetScheInfoListByDoctorNumber(string DoctorNum, out ExceptionAll exception)
        {
            return scheTimeProvide.GetScheInfoListByDoctorNum(DoctorNum, out exception);
        }
    }
}
